message(STATUS "Find Librealsence2")
if (${WITH_LIBREALSENCE2} STREQUAL "ON")
    message(STATUS "WITH_LIBREALSENCE2:ON")
    find_package(realsense2 REQUIRED)
    message(STATUS realsense2_LIBRARY="${realsense2_LIBRARY}")
    message(STATUS realsense2_INCLUDE_DIRS="${realsense2_INCLUDE_DIR}")
    include_directories(${realsense2_INCLUDE_DIR})
    add_definitions(-D WITH_LIBREALSENCE2)
else ()
    message(STATUS "WITH_LIBREALSENCE2:OFF")
endif ()